<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
let num = 10
function test1(){
    let num = 100
    console.log(num)
}
function test2(){
    let num = 1000
    console.log(num)
}
console.log(num)
test1()
test2()
for(i = 1; i <= 100;i++){

}
console.log(i)
</script>
</html>